
 import 'package:flutter/cupertino.dart';

main(){
  String symbol = "";
  String price = "";
  List<String> num = [];

  for(int i = 0; i < 10; i ++) {
    num.add(i.toString());
  }
  String tempStr = "hd\$123,344";
  List<String> StrList = tempStr.characters.toList();
  int startNum = 0;
  String s = "";

  for(int i = 0 ; i < StrList.length; i++) {
    if(num.contains(StrList[i])) {
      startNum = i;
      break;
    }
  }
  
  
  
  symbol = tempStr.substring(0,startNum);
  price = tempStr.substring(startNum,tempStr.length);

  print("$symbol + $price");
}